/*
package com.alibaba.seckill.controller;


import com.alibaba.seckill.mapper.UserMapper;
import com.alibaba.seckill.pojo.User;
import com.alibaba.seckill.rabbitmq.MQSender;
import com.alibaba.seckill.vo.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

*/
/**
 * <p>
 * 前端控制器
 * </p>
 * @author 曹帅
 * @since 2021-11-14
 *//*

@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserMapper userMapper;
    @Autowired
    private MQSender mqSender;

    */
/**
     * 用户信息(测试)
     * @param user
     * @return
     *//*

    @RequestMapping("/info")
    @ResponseBody
    public RespBean info(User user) {
        return RespBean.success(user);
    }

    */
/**
     * 用户信息(测试)
     * @param
     * @return
     *//*

    @RequestMapping("/test")
    @ResponseBody
    public RespBean test() {
        List<User> user = userMapper.selectAll();
        user.forEach(f -> {
            System.out.println(f);
        });

        return RespBean.success(user);
    }


    */
/**
     * 测试发送RabbitMQ消息
     *//*

    @RequestMapping("/mq")
    @ResponseBody
    public void mq() {
        mqSender.send("原来是曹帅啊!!!!");
    }

    */
/**
     * 测试发送RabbitMQ消息
     *//*

    @RequestMapping("/mq/direct01")
    @ResponseBody
    public void mq01() {
        mqSender.send01("Hello,Red");
    }

    */
/**
     * 测试发送RabbitMQ消息
     *//*

    @RequestMapping("/mq/direct02")
    @ResponseBody
    public void mq02() {
        mqSender.send02("Hello,Green");
    }

    */
/**
     * 测试发送RabbitMQ消息
     *//*

    @RequestMapping("/mq/topic01")
    @ResponseBody
    public void mq03() {
        mqSender.send03("Hello,Red");
    }

    */
/**
     * 测试发送RabbitMQ消息
     *//*

    @RequestMapping("/mq/topic02")
    @ResponseBody
    public void mq04() {
        mqSender.send04("Hello,Green");
    }

    */
/**
     * 测试发送RabbitMQ消息
     *//*

    @RequestMapping("/mq/header01")
    @ResponseBody
    public void mq05() {
        mqSender.send05("Hello,header01");
    }

    */
/**
     * 测试发送RabbitMQ消息
     *//*

    @RequestMapping("/mq/header02")
    @ResponseBody
    public void mq06() {
        mqSender.send06("Hello,header02");
    }
}
*/
